import 'package:course_control/config/styles.dart';
import 'package:course_control/widgets/primary_button.dart';
import 'package:course_control/widgets/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_utils/flutter_utils.dart';

import 'package:get/get.dart';

import '../controllers/call_controller.dart';

class CallView extends GetView<CallController> {
  const CallView({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.transparent,
      body: Padding(
        padding: EdgeInsets.symmetric(horizontal: 20.ratio, vertical: 50.ratio),
        child: TransparentContain(
          width: double.infinity,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text(
                '000151586',
                style: TextStyles.titleStyle.copyWith(fontSize: 64.ratio),
              ),
              SizedBox(
                height: 10.ratio,
              ),
              Text(
                '管理员号码',
                style: TextStyles.titleStyle.copyWith(fontSize: 32.ratio),
              ),
              SizedBox(
                height: 50.ratio,
              ),
              Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  PrimaryButton.border(
                    width: 256.ratio,
                    height: 84.ratio,
                    child: Text('取消', style: TextStyles.titleStyle),
                  ),
                  SizedBox(
                    width: 84.ratio,
                  ),
                  PrimaryButton(
                    width: 256.ratio,
                    height: 84.ratio,
                    child: Text('接通电话', style: TextStyles.titleStyle),
                  )
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}
